﻿using System;
using System.Linq;
using System.Windows;
using LINQPad.OpenAccess.UI.ViewModel;

namespace LINQPad.OpenAccess.UI.Services
{
    /// <summary>
    /// Factory for connection settings view's.
    /// </summary>
    public interface IConnectionSettingsViewFactory
    {
        /// <summary>
        /// Creates the connection settings view for the specified view model.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        /// <returns>The view or <c>null</c>.</returns>
        FrameworkElement CreateConnectionSettingsView( IConnectionSettingsViewModel viewModel );
    }
}
